﻿@model blacksoft.Models.GenerateReservaFilterModel
@{
    ViewBag.Title = "BuscarProgramacion";
    Layout = "~/Views/Shared/_LayoutCliente.cshtml";
}


<script>
    $(document).ready(function () {
        $('input[type="date"]').datetimepicker().datetimepicker({
            step: 30,
            lang: 'es',
            format: 'd/m/Y',
            timepicker: false
        }).prop('type', 'text');
    });
</script>


@using (Html.BeginForm("Programacion", "ReservaClienteLogin", FormMethod.Get))
{
    <h3>Generar Reserva</h3>
    <table id="pnlGenerateReservaCliente" style="width:500px;">
        <tr>
            <td>@Html.LabelFor(c => c.Origen)</td>
            <td>
                <select id="Origen" name="Origen" style="width:180px;">
                    <option value="">Seleccione</option>
                    @foreach (var item in Model.ListOrigen)
                    {
                        <option value='@item.Text'>@item.Text</option>
                    }
                </select>
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(c => c.Destino)</td>
            <td>
                <select id="Destino" name="Destino" style="width:180px;">
                    <option value="">Seleccione</option>
                    @foreach (var item in Model.ListDestino)
                    {
                        <option value='@item.Text'>@item.Text</option>
                    }
                </select>
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(c => c.TipoViaje)</td>
            <td>
                @Html.RadioButtonFor(model => model.TipoViaje, "IDA", new { @class = "rdIDA", }) Solo Ida
                @Html.RadioButtonFor(model => model.TipoViaje, "IDAVUELTA", new { @class = "rdIDAVUELTA", @checked = "checked" }) Ida Vuelta
            </td>
        </tr>
        <tr id="content-fechaSalida">
            <td>@Html.LabelFor(c => c.FechaSalida)</td>
            <td>@Html.EditorFor(c => c.FechaSalida, new { @class = "objetos", @type = "date" })</td>
        </tr>
        <tr id="content-fechaLlegada">
                <td>@Html.LabelFor(c => c.FechaLlegada)</td>
                <td>@Html.EditorFor(c => c.FechaLlegada, new { @class = "objetos", @type = "date" })</td>
            </tr>
        <tr>
            <td colspan="2" style="text-align:center;">
                <!--<button id="btnBuscarProgramacionViaje" onclick="return validarBuscarProgramacionViaje();">BUSCAR</button>-->
                <input type="submit" value="BUSCAR" onclick="return validarBuscarProgramacionViaje();" />
            </td>
        </tr>
        <tr>
            <td colspan="2"><span style="font-weight:bold;color:white;">@Model.mensajeAgregoBien</span></td>
        </tr>
    </table>
}